package com.doudizu.ZX;

    public class Lizard {
        private String id;
        private String name;
        private String color;
        private String eatfood;
        private String apparance;
        private String friend;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setColor(String color) {
            this.color = color;
        }

        public String geteatfood() {
            return eatfood;
        }

        public void seteatfood(String eatfood) {
            this.eatfood = eatfood;
        }

         public String getapparance() {
            return apparance;
        }

        public void setapparance(String apparance) {
            this.apparance = apparance;
        }

         public String getfriend() {
            return friend;
        }

        public void setfriend(String friend) {
            this.friend = friend;
        }

        @Override
        public String toString() {
            return "动物类名：lizard{" + '\n' +
                    "动物id：'" + id + '\n' +
                    "动物名称：'" + name + '\n'' +
                    "动物颜色：'"+ color + '\n''+
                    "吃的食物："+ eatfood + '\n' +
                    "属性："+ apparance + '\n' +
                    "朋友：" + friend + '\n' ;
                    }

        public void eatFood() {
            System.out.println("吃昆虫~好吃~");
        }

        public void apparance() {
            System.out.println("霸道!战斗力强！高傲！");
        }

        public void friend() {
            System.out.println("小狐狸~红色的小狐狸~毛绒绒滴可爱~趴在身上睡觉舒服~");
        }
    }
}
